<?php
define('BASE_DIRECTORY', dirname( __FILE__));
date_default_timezone_set('America/New_York');

error_reporting(E_ALL);
ini_set('display_errors', '1');


set_include_path(get_include_path() . PATH_SEPARATOR . BASE_DIRECTORY.'/lib');
set_include_path(get_include_path() . PATH_SEPARATOR . BASE_DIRECTORY.'/lib/vendor/');
set_include_path(get_include_path() . PATH_SEPARATOR . BASE_DIRECTORY.'/controllers/');

//logger
require_once('apache-log4php/Logger.php');
//EIP Functions
require_once('EIP.php');
//We have to load Smarty before EIP because it autloader conflicts
require_once('Smarty/Smarty.class.php');
require_once( (true || preg_match('#/EIP/.*?#',$name) || isset($_SESSION['EIP_admin']) ) ? 'lib/ControllerIDE.php' : 'lib/Controller.php' );
?>